package mmc.server.shell.ops;

/**
 *
 * @author Rainer Hammerschmid
 */
public enum PriorityType {
	ASSIGNMENT(0),
	COMPARISON(5),
    LINE(10),
    POINT(20),
    UNARY_OP(30),
    FUNCTION(40),
    CONSTANT(50),
    VARIABLE(60);
    
    private int priorityId;
    
    PriorityType(int priorityId){
        this.priorityId = priorityId;
    }
    
    public boolean isPriorityLower(PriorityType other){
        if(this.priorityId>other.priorityId) {
            return true;
        }
        else {
            return false;
        }
    }
}
